extends CanvasLayer
@onready var start_button: Button = $AnimatedMarginContainer/Panel/VBoxContainer/StartButton
@onready var quit_button: Button = $AnimatedMarginContainer/Panel/VBoxContainer/QuitButton

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	start_button.pressed.connect(on_start_pressed)
	quit_button.pressed.connect(on_quit_pressed)

func on_start_pressed():
	await get_tree().create_timer(.2).timeout
	$"/root/LevelManager".to_first_level()


func on_quit_pressed():
	await get_tree().create_timer(.2).timeout
	get_tree().quit()
